Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 848 clean up. #857

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

PR 848 clean up. #857

wants to merge 2 commits into from

Conversation

jjsjann123
Copy link
Collaborator

Follow up on PR review comments:
test clean up.

@jjsjann123 jjsjann123 requested a review from IvanYashchuk July 24, 2024 21:48
@@ -3743,8 +3743,8 @@ def backward_fn(saved_for_backward, cotangents):
proxified if isinstance(entry, Proxy) else entry
for proxified, entry in zip(flat_saves_proxified, flat_saves)
]
saved_for_backward = tree_unflatten(flat_filtered, saves_spec)
env = reconstruct_forward_env_for_backward(trace, saved_for_backward)
unproxiefied_saved_for_backward = tree_unflatten(flat_filtered, saves_spec)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IvanYashchuk embarrassingly I don't quite get how this would work with a tree_map... how would I be able to zip two pytree while still keep them as a pytree?

@t-vi t-vi marked this pull request as ready for review July 25, 2024 05:53
@t-vi t-vi requested review from mruberry, lantiga and t-vi as code owners July 25, 2024 05:53
@t-vi t-vi marked this pull request as draft July 25, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant